<%@page import="entity.Student"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		Student student = (Student)request.getAttribute("student");
		// UPDATE `student` SET `name`='zhangsan',`age`=23,`gender`='男' WHERE `id`=13
	%>
	<form action="<%=request.getContextPath()%>/student?method=update" method="post">
	    <input type="hidden" name="id" value="<%=student.getId()%>"/>
		用户名：<input type="text" name="name" value="<%=student.getName()%>"/><br/>
		年龄： <input type="text" name="age" value="<%=student.getAge()%>" /><br/>
		性别： <input type="text" name="gender" value="<%=student.getGender()%>"  /><br/>
		<input type="submit" value="修改">
	</form>
</body>
</html>